<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>Home</title>
  </head>
  
  <body>
  <s:fielderror></s:fielderror>
 <s:form action="fileUpload" namespace="/myhello" method="post" enctype="multipart/form-data">
 <s:textfield name="filename" label="文件名称："></s:textfield>
 <s:file name="myFile" label="文件"></s:file>
 <s:submit></s:submit>
 </s:form>
   
   </body>
</html>
